package cn.xiyan.baas.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.xiyan.baas.entity.User;
import org.springframework.cache.annotation.Cacheable;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ruiyanglee
 * @since 2020-08-19
 */
public interface IUserService extends IService<User> {
    @Cacheable(value = "user", key="#id")
    User findById(String id);

    IPage<User> selectPage(Page<User> page, QueryWrapper<User> userQueryWrapper);
}
